// 交易仓库
import { reqOrderInfo } from '@/api';

const state = {
    orderInfo: {}
};
const mutations = {
    GETORDERINFO(state, orderInfo) {
        state.orderInfo = orderInfo;
    }
};
const actions = {
    // 获取商品清单数据
    async getOrderInfo({ commit }) {
        let result = await reqOrderInfo();
        if (result.code == 200) {
            commit('GETORDERINFO', result.data);
        }
    },
};
const getters = {};
export default {
    state,
    mutations,
    actions,
    getters
}